import { Component, OnInit } from '@angular/core';
import { NavigationExtras, Router } from '@angular/router';

@Component({
  selector: 'app-zhuce',
  templateUrl: './zhuce.page.html',
  styleUrls: ['./zhuce.page.scss'],
})
export class ZhucePage implements OnInit {

  public userInfo:any={
    name:'',
    phoneNumber:''
  }
  public code:any;

  constructor(public router:Router) { }

  ngOnInit() {
  }


  next() {
    // if (this.username == "") {
    //   alert("请输入用户名");
    // } else if (this.telephone == "") {
    //     alert("请输入电话");
    // }else if (this.code == "") {
    //   alert("请输入验证码");
    // } else {
        // let queryParams:NavigationExtras={
        //   queryParams:{
        //     name:this.username,
        //     phoneNumber:this.telephone
        //   }
        // }
        this.router.navigate(['/zhuce1/',this.userInfo])
        // console.log('我发生了跳转');
    // }
    
  }
}
